5d48f93557bb42a291c649f48fccdf7a429b2dac,core/src/test/java/org/elasticsearch/bootstrap/JarHellTests.java,JarHellTests,testBadJDKVersionProperty,#,184

Before Change


        System.setProperty("java.specification.version", "bogus");

        Manifest manifest = new Manifest();
        manifest.getMainAttributes().put(new Attributes.Name("X-Compile-Target-JDK"), "1.7");
        URL[] jars = {makeJar(dir, "foo.jar", manifest, "Foo.class")};
        try {
            JarHell.checkJarHell(jars);

After Change


        System.setProperty("java.specification.version", "bogus");

        Manifest manifest = new Manifest();
        Attributes attributes = manifest.getMainAttributes();
        attributes.put(Attributes.Name.MANIFEST_VERSION, "1.0.0");
        attributes.put(new Attributes.Name("X-Compile-Target-JDK"), "1.7");
        URL[] jars = {makeJar(dir, "foo.jar", manifest, "Foo.class")};
        try {